package model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class InvoiceDetail {
	private int invoidetailID;
	private String productID;
	private String productName;
	private int quantity;
	private double price;

	private Invoice invoice;

	@ManyToOne
	@JoinColumn(name = "invoice_Id")
	public Invoice getInvoice() {
		return invoice;
	}

	public void setInvoice(Invoice invoice) {
		this.invoice = invoice;
	}

	public String getProductID() {

		return productID;
	}

	@Id
	@GeneratedValue
	public int getInvoidetailID() {
		return invoidetailID;
	}

	public void setInvoidetailID(int invoidetailID) {
		this.invoidetailID = invoidetailID;
	}

	public void setProductID(String productID) {
		this.productID = productID;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

}
